//
//  YBNetworking.h
//  iphoneLive
//
//  Created by YunBao on 2018/6/6.
//  Copyright © 2018年 cat. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^PullSuccessBlock)(NSDictionary *data,NSInteger code,NSString *msg);

@interface YBNetworking : NSObject

@property (nonatomic, strong) AFHTTPSessionManager *manager;

+ (instancetype)share;
/**
 网络封装
 @param url 接口名称
 @param dic 接口参数dic
 @param sucBack 成功回调
 @param failBack 失败回调
 */
+(void)postWithUrl:(NSString *)url Dic:(NSMutableDictionary *)dic Suc:(PullSuccessBlock)sucBack;
+ (void)postUploadFileWithUrl:(NSString *)url Dic:(NSMutableDictionary *)dic fileData:(NSData *)fileData Suc:(PullSuccessBlock)sucBack;
+ (void)postFeedBackUploadUrl:(NSString *)url Dic:(NSMutableDictionary *)dic images:(NSArray *)images Suc:(PullSuccessBlock)sucBack;

+ (void)postCreatorInfoUrl:(NSString *)url Dic:(NSMutableDictionary *)dic shenfengzhengFrontImage:(NSData *)frontImageData shenfengzhengBackImage:(NSData *)backImageData fuzhuImages:(NSArray *)images Suc:(PullSuccessBlock)sucBack;
@end
